﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/admin/list_view.master" %>

<script runat="server">
    void Page_Init(object o, EventArgs e)
    {
        if (null != Session["BranchID"])
        {
            ds2.FilterExpression = string.Format("BranchID={0}", Session["BranchID"]);
        }
        else
        {
            ds2.FilterExpression = string.Format("BranchID={0}", 0);
        }
        if (!IsPostBack)
        {
            ds2.FilterExpression = string.Format("BranchID={0}", 0);
        }
    }
    
    void clickme(object o, EventArgs e)
    {
        //System.Threading.Thread.Sleep(5000);
       // mylabel.Text = "click alrady";
       // timerbox.Text = DateTime.Now.ToString();
        
    }

    void MakeChanged(Object sender,  EventArgs e)
    {
        ASPxGridView grid = sender as ASPxGridView;

        int t = grid.FocusedRowIndex;
        if (t > -1)
        {
            object id = grid.GetRowValues(t, new string[] { "BranchID" });
            //object name = grid.GetRowValues(t, new string[] { "Name" });
            // mylabel.Text = "Selection:" + id.ToString();
            
            Session["BranchID"] = id;
            int idn = int.Parse(id.ToString());
            if (idn > 0)
            {
               
            } 
            
            ds2.FilterExpression = string.Format("BranchID={0}", Session["BranchID"]);

            grid2.Selection.UnselectAll();
            grid2.PageIndex = 0;
            grid2.DataBind();
            
            
            
            
            //this.dsXXModel.FilterExpression = "BranchID=" + o;
            //DataBind();
        }
    }


    protected void grid2_Init(object sender, EventArgs e)
    {
        ASPxGridView grd = sender as ASPxGridView;
        if (grd != null)
        {
            grd.ForceDataRowType(typeof(Touchmax.BoEmployee));
        }
    }

    protected void grid2_InitNewRow(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
    {
    }

    protected void grid2_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
    {
    }

    protected void grid2_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
    {
        int id = int.Parse(Session["BranchID"].ToString());
        e.NewValues["BranchID"] = id;

    }

    
    </script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style>
    div {font-size:10px;font-family:Verdana;}
    </style>
    <script type="text/javascript">
    </script>
</asp:Content>

<asp:Content ID="title1" ContentPlaceHolderID="Title1" Runat="Server">
<table width=100% cellpadding="4">
    <tr>
    <td align=left class="bb">
        Branch List
    </td>
    <td align=right class="bb">
    </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="title2" ContentPlaceHolderID="Title2" Runat="Server">
<table width=100% cellpadding="4">
    <tr>
    <td align=left class="bb">
        Employee Setup
    </td>
    <td align=right class="bb">
       
    </td>
    </tr>
</table>
</asp:Content>
<asp:Content ID="title3" ContentPlaceHolderID="Title3" Runat="Server">

</asp:Content>

<asp:Content ID="Page1" ContentPlaceHolderID="Page1" Runat="Server">
<wilson:DataSource ID="ds1" TypeName="Touchmax.BoBranch" KeyMember="BranchID" FilterExpression="1=1" runat="server" ObjectSpace="Touchmax.Manager.ORManager"/>
<dxwgv:ASPxGridView ID="grid1" ClientInstanceName="grid1" runat="server" DataSourceID="ds1" KeyFieldName="BranchID" 
       OnFocusedRowChanged="MakeChanged" Width="100%" AutoGenerateColumns="False" EnableCallBacks="False">
                <SettingsPager Mode="ShowAllRecords"/>
                <Columns>
                    <dxwgv:GridViewDataColumn FieldName="BranchName" VisibleIndex="1" SortIndex="1" SortOrder="Descending">
                    </dxwgv:GridViewDataColumn>
                </Columns>
                <Settings ShowGroupPanel="False" ShowFooter="False" ShowTitlePanel="false" ShowColumnHeaders="False" />
                <SettingsBehavior AllowMultiSelection="false" AllowFocusedRow="true" ProcessFocusedRowChangedOnServer="true" />
            </dxwgv:ASPxGridView>
</asp:Content>
<asp:Content ID="Page2" ContentPlaceHolderID="Page2" Runat="Server">

<asp:SqlDataSource ID="dsPickColorFormular"	SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1001 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickColorMatch" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1002 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickMarketingSource" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1003 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickOrderStatus" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1004 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickColorOption" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1005 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickDepartment" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1006 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickWorkType" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1007 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickWorkLocation" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1008 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickServiceType" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1009 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickRepairStatus" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1010 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickCustomerGroup" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1011 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickPrimaryColor" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1012 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickBranchGroup" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1013 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="SqlDataSource1" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1014 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickPhoneType" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1015 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickBranchStatus" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1016 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickEmploymentStatusID" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1017 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickPaymentTerm" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1018 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickVehicleYear" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1019 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickPaymentMethod" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1020 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickCallProcess" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1021 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickCallStatus" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1022 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />


<asp:SqlDataSource ID="dsPickCountry" SelectCommand="select * from ddCountry order by countryname" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickState" SelectCommand="select * from ddState where countrycode='CA' order by statename" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickCity" SelectCommand="select * from ddCity where statecode='BC' order by statename" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickZoneCode" SelectCommand="select distinct zonecode from ddPostal order by zonename" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />


<asp:SqlDataSource ID="dsPickRoleID" SelectCommand="select RoleName as Code, RoleID as Id from acRole" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<asp:SqlDataSource ID="dsPickEmployeeGroupID" SelectCommand="select ddItemCode as Code, ddItemId as Id from ddItems where ddItemStatus='Active' and ddGroupId=1014 order by ddItemSort" runat="server" ConnectionString="Server=.\Sqlexpress;DataBase=colorworksDB;UID=sa;PWD=1234;"  />
<wilson:DataSource ID="dsBranch" TypeName="Touchmax.BoBranch" KeyMember="BranchID" FilterExpression="1=1" runat="server" ObjectSpace="Touchmax.Manager.ORManager"/>
<wilson:DataSource ID="dsCombo" TypeName="Touchmax.FaItem" KeyMember="ItemID" FilterExpression="1=1" runat="server" ObjectSpace="Touchmax.Manager.ORManager"/>
<wilson:DataSource ID="ds2" TypeName="Touchmax.BoEmployee" KeyMember="EmployeeID" FilterExpression="BranchID=0" runat="server" ObjectSpace="Touchmax.Manager.ORManager"/>
<dxwgv:ASPxGridView ID="grid2" ClientInstanceName="grid2" runat="server" DataSourceID="ds2" KeyFieldName="EmployeeID" 
        Width="100%" AutoGenerateColumns="False"  EnableCallBacks="False" OnInit="grid2_Init" OnInitNewRow="grid2_InitNewRow" OnRowUpdating="grid2_RowUpdating" OnRowInserting="grid2_RowInserting">
                <SettingsPager Mode="ShowAllRecords"/>
                <Columns>
                    <dxwgv:GridViewCommandColumn VisibleIndex="0" Width="80">
                        <EditButton Visible="True" />
                    </dxwgv:GridViewCommandColumn>           
                    <dxwgv:GridViewDataTextColumn Caption="Fist Name" FieldName="FirstName" VisibleIndex="5"></dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Middle Name" FieldName="MiddleName" VisibleIndex="6"></dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Last Name" FieldName="LastName" VisibleIndex="6"></dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Cell Phone" FieldName="CellPhone" VisibleIndex="6"></dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Email" FieldName="Email" VisibleIndex="6"></dxwgv:GridViewDataTextColumn>
                        
                    <dxwgv:GridViewDataComboBoxColumn Caption="Role" ReadOnly="true" FieldName="RoleID" VisibleIndex="9">
                        <PropertiesComboBox DataSourceID="dsPickRoleID" TextField="Code" ValueField="Id" EnableSynchronization="False"
                    EnableIncrementalFiltering="True">
                    </PropertiesComboBox>
                    </dxwgv:GridViewDataComboBoxColumn>         
                                    
                    </Columns>
                    <Templates>
                    <EditForm>
 <table cellspacing=4>
<tr>
<td class="tdLabel">Staff Code</td><td class="tdInput"><dxe:ASPxTextBox ID="text_EmployeeCode" ClientInstanceName="text_EmployeeCode" Readonly="False" cssClass="txtInput" Text='<%# Bind("EmployeeCode") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel"></td><td class="tdInput">
</td>
<td class="tdLabel" rowspan="3">Photo:</td><td class="tdInput" rowspan="3">
<img src="<%# Eval("PhotoPath") %>" />
</td>
</tr>
<tr>
<td class="tdLabel">Name</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Name" ClientInstanceName="text_Name" Readonly="False" cssClass="txtInput" Text='<%# Bind("FirstName") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_Birthday" ClientInstanceName="date_Birthday" Readonly="False" cssClass="txtInput" value='<%# Bind("Birthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">Sex</td><td class="tdInput">
<dxe:ASPxRadioButtonList runat="server" ID="rbSex" RepeatDirection="Horizontal" Value='<%# Bind("SexType") %>' >
<Items>
<dxe:ListEditItem Text="Female" Value="Female" />
<dxe:ListEditItem Text="Male" Value="Male" />
</Items>
</dxe:ASPxRadioButtonList>
</td>
</tr>
<tr>
<td colspan=6 style="height:2px;margin:10px;border-bottom:solid 2px gray;"></td>
</tr>
<tr style="border:solid 2px gray">
<td class="tdLabel">Username</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Username" ClientInstanceName="text_Username" Readonly="False" cssClass="txtInput" Text='<%# Bind("Username") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Password</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Password" ClientInstanceName="text_Password" Readonly="False" cssClass="txtInput" Text='<%# Bind("Password") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Role</td><td class="tdInput"><dxe:ASPxComboBox ID="pick_RoleID" ClientInstanceName="pick_RoleID" Readonly="False" cssClass="txtCombo" Text='<%# Bind("RoleName") %>' DataSourceID="dsPickRoleID" ValueField="Id" TextField="Code" TabIndex="0" runat="server" ></dxe:ASPxComboBox></td>
</tr>
<tr>
<td colspan=6 style="height:2px;margin:10px;border-bottom:solid 2px gray;"></td>
</tr>
<tr>
<td class="tdLabel">Home Phone</td><td class="tdInput"><dxe:ASPxTextBox ID="text_HomePhone" ClientInstanceName="text_HomePhone" Readonly="False" cssClass="txtInput" Text='<%# Bind("HomePhone") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Cell Phone</td><td class="tdInput"><dxe:ASPxTextBox ID="text_CellPhone" ClientInstanceName="text_CellPhone" Readonly="False" cssClass="txtInput" Text='<%# Bind("CellPhone") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel"></td><td class="tdInput"></td>
</tr>
<tr>
<td class="tdLabel">Emergency Contact</td><td class="tdInput"><dxe:ASPxTextBox ID="ASPxTextBox1" ClientInstanceName="text_HomePhone2" Readonly="False" cssClass="txtInput" Text='<%# Bind("EmContact") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Emergency Contact No</td><td class="tdInput"><dxe:ASPxTextBox ID="ASPxTextBox2" ClientInstanceName="text_CellPhone2" Readonly="False" cssClass="txtInput" Text='<%# Bind("EmContactNo") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel"></td><td class="tdInput"></td>
</tr>
<tr>
<td class="tdLabel">Address</td><td class="tdInput" colspan=5>
<dxe:ASPxTextBox ID="text_Address1" Width="500" ClientInstanceName="text_Address1" Readonly="False" cssClass="txtInput" Text='<%# Bind("Address1") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox>
</tr>
<tr>
<td class="tdLabel"></td><td class="tdInput" colspan=5>
<dxe:ASPxTextBox ID="text_Address2" Width="500" ClientInstanceName="text_Address2" Readonly="False" cssClass="txtInput" Text='<%# Bind("Address2") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox>
</td>
</tr>

<tr>
<td class="tdLabel">City</td><td class="tdInput"><dxe:ASPxTextBox ID="text_CityName" ClientInstanceName="text_CityName" Readonly="False" cssClass="txtInput" Text='<%# Bind("CityName") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Province</td><td class="tdInput"><dxe:ASPxTextBox ID="text_StateCode" ClientInstanceName="text_StateCode" Readonly="False" cssClass="txtInput" Text='<%# Bind("StateCode") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">PostalCode</td><td class="tdInput"><dxe:ASPxTextBox ID="text_PostalCode" ClientInstanceName="text_PostalCode" Readonly="False" cssClass="txtInput" Text='<%# Bind("PostalCode") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
</tr>
<tr>
<td class="tdLabel">Start Date</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_DateFrom" ClientInstanceName="date_DateFrom" Readonly="False" cssClass="txtInput" value='<%# Bind("DateFrom") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">Leaving Date</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_DateTo" ClientInstanceName="date_DateTo" Readonly="False" cssClass="txtInput" value='<%# Bind("DateTo") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">Status</td><td class="tdInput"><dxe:ASPxComboBox ID="pick_EmploymentStatusID" ClientInstanceName="pick_EmploymentStatusID" Readonly="False" cssClass="txtCombo" Text='<%# Bind("EmploymentStatus") %>' DataSourceID="dsPickEmploymentStatusID" ValueField="Id" TextField="Code" TabIndex="0" runat="server" ></dxe:ASPxComboBox></td>
</tr>
<tr>
<td class="tdLabel">Assigned Truck</td><td class="tdInput"><dxe:ASPxTextBox ID="text_AssignedTruck" ClientInstanceName="text_AssignedTruck" Readonly="False" cssClass="txtInput" Text='<%# Bind("AssignedTruck") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Note</td><td class="tdInput" colspan="5"><dxe:ASPxMemo ID="memo_Note" Width="500" ClientInstanceName="memo_Note" cssClass="txtMemo" Rows="2" Text='<%# Bind("Note") %>' TabIndex="0" runat="server"></dxe:ASPxMemo></td>
</tr>
<tr>
<td colspan=6 style="height:2px;margin:10px;border-bottom:solid 2px gray;"></td>
</tr>
<tr>
<td class="tdLabel">Spouse</td><td class="tdInput"><dxe:ASPxTextBox ID="text_SpouceName" ClientInstanceName="text_SpouceName" Readonly="False" cssClass="txtInput" Text='<%# Bind("SpouseName") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_SpouseBirthday" ClientInstanceName="date_SpouseBirthday" Readonly="False" cssClass="txtInput" value='<%# Bind("SpouseBirthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Kid1</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Kid1" ClientInstanceName="text_Kid1" Readonly="False" cssClass="txtInput" Text='<%# Bind("Kid1") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_Kid1Birthday" ClientInstanceName="date_Kid1Birthday" Readonly="False" cssClass="txtInput" value='<%# Bind("Kid1Birthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Kid2</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Kid2" ClientInstanceName="text_Kid2" Readonly="False" cssClass="txtInput" Text='<%# Bind("Kid2") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_Kid2Birthday" ClientInstanceName="date_Kid2Birthday" Readonly="False" cssClass="txtInput" value='<%# Bind("Kid2Birthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Kid3</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Kid3" ClientInstanceName="text_Kid3" Readonly="False" cssClass="txtInput" Text='<%# Bind("Kid3") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_Kid3Birthday" ClientInstanceName="date_Kid3Birthday" Readonly="False" cssClass="txtInput" value='<%# Bind("Kid3Birthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td class="tdLabel">Kid4</td><td class="tdInput"><dxe:ASPxTextBox ID="text_Kid4" ClientInstanceName="text_Kid4" Readonly="False" cssClass="txtInput" Text='<%# Bind("Kid4") %>' TabIndex="0" runat="server" ></dxe:ASPxTextBox></td>
<td class="tdLabel">Birthday</td><td class="tdInput"><dxe:ASPxDateEdit ID="date_Kid4Birthday" ClientInstanceName="date_Kid4Birthday" Readonly="False" cssClass="txtInput" value='<%# Bind("Kid4Birthday") %>' EditFormat="Custom" EditFormatString="dd/MM/yyyy" DisplayFormatString="dd/MM/yyyy" TabIndex="0" runat="server" ></dxe:ASPxDateEdit></td>
<td class="tdLabel">&nbsp;</td><td class="tdInput">&nbsp;</td>
</tr>
<tr>
<td colspan=6 style="height:2px;margin:10px;border-bottom:solid 2px gray;"></td>
</tr>
<td colspan=6 align="right"><br />
                <dxe:ASPxButton ID="btn_Save1" Width="90" runat="server" Text="Save Employee" AutoPostBack="false"
                                    UseSubmitBehavior="false">
                                    <ClientSideEvents Click="function(s,e) {
                                                           grid2.UpdateEdit();
                                                        }" />
                                </dxe:ASPxButton>
                </td></tr></table>


                    

                    </EditForm>
                    </Templates>

                    <SettingsEditing Mode="EditForm" />
      
                <Settings ShowGroupPanel="False" ShowFooter="False" ShowTitlePanel="false" ShowColumnHeaders="True" />
                <SettingsBehavior ConfirmDelete="True" AllowFocusedRow="true" ProcessFocusedRowChangedOnServer="true" />
            </dxwgv:ASPxGridView>
</asp:Content>
<asp:Content ID="Page3" ContentPlaceHolderID="Page3" Runat="Server">
</asp:Content>

